package behavior.responsibility;

import behavior.responsibility.stratum.*;

public class ChainPatternUtil {

    public static AbstractStratum getStratumHandle(){

        AbstractStratum easyMessage = new SoilderGroup(WarReport.EASY);
        AbstractStratum nomalMessage = new Senior(WarReport.NORMAL);
        AbstractStratum nationalMessage = new PrimeMinister(WarReport.URGENT);
        AbstractStratum kingMessage = new King(WarReport.NATIONAL);

        easyMessage.setNextStratum(nomalMessage);
        nomalMessage.setNextStratum(nationalMessage);
        nationalMessage.setNextStratum(kingMessage);

        return easyMessage;
    }
}
